/**
 * @properties={typeid:24,uuid:"F3183ABF-EA30-472F-B7F0-D0CCC0E8E644"}
 */
function escalaInsc() {
	elements.porc_insc.enabled = !porc_insc_en_escala
	escondeTab()
}

/**
 * @properties={typeid:24,uuid:"60D5EE48-0374-4BE7-A344-D338779D5B91"}
 */
function escalaNoInsc() {
	elements.porc_no_insc.enabled = !porc_no_insc_en_escala
	escondeTab()
}

/**
 * @properties={typeid:24,uuid:"E7059F0A-7CE3-42D0-B60B-93158F48DE2D"}
 */
function cambio ()
{
	escalaInsc()
	escalaNoInsc()
}

/**
 * @properties={typeid:24,uuid:"EA94AF4F-2BC7-4683-A8B0-ADAC97C32C13"}
 */
function escondeTab()
{
	if ((porc_insc_en_escala == 1) || (porc_no_insc_en_escala == 1))
	{
		elements.lbl_escala.visible = 1
		elements.tabs_110.visible = 1
		elements.btn_alta.visible = 1
		elements.btn_baja.visible = 1
	}
	else
	{
		elements.lbl_escala.visible = 0
		elements.tabs_110.visible = 0
		elements.btn_alta.visible = 0
		elements.btn_baja.visible = 0
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"D868B191-F4F0-48BA-B81B-7F563FC8318C"}
 */
function alta(event) {
	reten_regimen_to_reten_escalas.newRecord()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"787F92D9-8472-43CA-B27E-FF0AA5702D42"}
 */
function baja(event) {
	reten_regimen_to_reten_escalas.deleteRecord()
}
